
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import {createPinia} from 'pinia'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import i18n from './language/language';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import { API_URL } from './config';
const app = createApp(App)
const pinia=createPinia()
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}   
app.use(router).use(ElementPlus).use(i18n).use(pinia).provide('$config', { API_URL })

app.mount('#app')
